package cn.youyeku.sockettransmission;

import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;

import cn.youyeku.sockettransmission.ui.BaseActivity;
import cn.youyeku.sockettransmission.ui.MainActivity;


public class LoadingAct extends BaseActivity {




    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loading_activity);
        Runnable runnable = new Runnable() {
            @Override
            public void run() {

                //跳转到主界面
                startActivity(new Intent(LoadingAct.this, MainActivity.class));
                finish();
            }
        };
        //延迟三秒执行
        handler.postDelayed(runnable, 1000);

    }




}
